package com.xiaoshuidi.cloud.module.member.pojo.point;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author neil
 * @version generator
 * @description 租客积分记录entity实体
 * @date 2022-12-15 09:44:56
 */
@Data
@TableName("member_tenant_points_record")
public class MemberPointsRecordEntity extends TenantBaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "租客id")
    private Long tenantUserId;

    @Schema(description = "积分流水号")
    private String recordNo;

    @Schema(description = "原积分商城流水号")
    private String oldRecordNo;

    @Schema(description = "记录类型，0手动，1租金 ，2交易，3大转盘")
    private Integer recordType;

    @Schema(description = "发放类型，0手动 1自动2商城")
    private Integer changeType;

    @Schema(description = "增减项，0减项，1增项")
    private Integer changeValueType;

    @Schema(description = "增减值")
    private Long changeValue;

    @Schema(description = "变动前积分")
    private Long beforeChangePoints;

    @Schema(description = "增加/扣减积分值")
    private Long changePoint;

    @Schema(description = "变动后积分")
    private Long afterChangePoints;

    @Schema(description = "备注")
    private String remark;


}
